# +----------------------------------------------------------------------
# | ChatWork智能聊天办公系统
# +----------------------------------------------------------------------
# | 软件声明: 本系统并非自由软件,未经授权任何形式的商业使用均属非法。
# | 版权保护: 任何企业和个人不允许对程序代码以任何形式任何目的复制/分发。
# | 授权要求: 如有商业使用需求,请务必先与版权所有者取得联系并获得正式授权。
# +----------------------------------------------------------------------
# | Author: ChatWork Team <2474369941@qq.com>
# +----------------------------------------------------------------------
from typing import Union, Any
from fastapi import Query
from pydantic import BaseModel, Field


class DiyDetailIn(BaseModel):
    """ 装修详情参数 """
    scene: int = Query(..., gt=0, description="场景")


class DiySaveIn(BaseModel):
    """ 装修保存参数 """
    scene: int = Field(..., gt=0, description="场景")
    data: Any = Field(..., description="数据")


"""--------------- Separator ---------------"""


class DiyDetailVo(BaseModel):
    id: int = Field(description="ID")
    scene: int = Field(description="场景")
    name: str = Field(description="名称")
    data: Union[list, dict] = Field(description="数据")
